'''
Created on Jun 25, 2018

@author: root
'''
import orm,asyncio
from models import User, Blog, Comment

@asyncio.coroutine
def test():
    yield from orm.create_pool(None,user='root', password='libo1991', db='awesome')
    u = User(name='test', email='test@example.com', passwd='1234567890', image='about:blank')
    yield from u.save()
    
if __name__ == '__main__':
    loop = asyncio.get_event_loop()
    loop.run_until_complete(test())
